import request from "@/utils/request";

export function listFileCate(data) {
    return request({
        url: '/system/sys_file_cate/list',
        method: 'get',
        params: data
    })
}

export function addFileCate(data) {
    return request({
        url: '/system/sys_file_cate/insert',
        method: 'post',
        data: data
    })
}

export function deleteFileCate(cateId) {
    return request({
        url: '/system/sys_file_cate/delete/' + cateId,
        method: 'delete'
    })
}

export function getFileCate(cateId) {
    return request({
        url: '/system/sys_file_cate/' + cateId,
        method: 'get'
    })
}

export function updateFileCate(data) {
    return request({
        url: '/system/sys_file_cate/update',
        method: 'put',
        data: data
    })
}
